If the program that you ' re testing comes with an application programmer interface ( api ) or a macro language , perhaps the function can call a single command and send it the file name and path as parameters 如果你的測試程序涉及到一個應用編程接口( api )或宏語言,那么該函數或許能調用一個單獨的命令,并把文件名和路徑作為參數傳遞給它。